/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package modelo;

import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GenerationType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.xml.crypto.Data;

/**
 *
 * @author Dirac
 */
@Entity
@Table(name ="SituacaoDoDiploma")
public class SituacaoDoDiploma {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;

    @Enumerated(EnumType.STRING)
    private SituacaoDiploma situacaoDiploma;

    @JoinColumn(name = "diploma", referencedColumnName = "id")
    @ManyToOne(optional=false)
    private Diploma diploma;

    @Column(name = "dia")
    @Temporal(TemporalType.TIMESTAMP)
    private Date dia;

    @Column(name="descricao")
    private String descricao;

    public String getDescricao() {
        return descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }

    public Date getDia() {
        return dia;
    }

    public void setDia(Date dia) {
        this.dia = dia;
    }

    public Diploma getDiploma() {
        return diploma;
    }

    public void setDiploma(Diploma diploma) {
        this.diploma = diploma;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public SituacaoDiploma getSituacaoDiploma() {
        return situacaoDiploma;
    }

    public void setSituacaoDiploma(SituacaoDiploma situacaoDiploma) {
        this.situacaoDiploma = situacaoDiploma;
    }



  
}
